export default [
    {
        path: "/",
        name: "login",
        component: ()=>import("@/views/login/index")
    },
    {
        path: "*",
        name: "404",
        component: ()=>import("@/views/404")
    },
    {
        path: "/oa",
        component: ()=>import("@/views/officeAutomation/index"),
        redirect: "/oa/audit",
        children: [
            {
                path: "audit",
                name: "audit",
                component: ()=>import("@/views/officeAutomation/audit/audit"),
                meta: {
                    activeMenu: 'audit'
                }
            },
            {
                path: "risk",
                component: {render: c => c("router-view")},
                redirect: "/oa/risk/risk",
                children: [
                    {
                        path: "risk",
                        name: "risk",
                        component: ()=>import("@/views/officeAutomation/riskAlarm/risk"),
                        meta: {
                            activeMenu: 'risk'
                        }
                    },
                    {
                        path: "alarm",
                        name: "alarm",
                        component: ()=>import("@/views/officeAutomation/riskAlarm/alarm"),
                        meta: {
                            activeMenu: 'alarm'
                        }
                    }
                ]
            },
            {
                path: "monitor",
                component: {render: c => c("router-view") },
                redirect: "/oa/monitor/property",
                children: [
                    {
                        path: "property",
                        name: "property",
                        component: ()=>import("@/views/officeAutomation/databaseMonitor/property"),
                        meta: {
                            activeMenu: 'property'
                        }
                    },
                    {
                        path: "access",
                        name: "access",
                        component: ()=>import("@/views/officeAutomation/databaseMonitor/access"),
                        meta: {
                            activeMenu: 'access'
                        }
                    },
                    {
                        path: "operation",
                        name: "operation",
                        component: ()=>import("@/views/officeAutomation/databaseMonitor/operation"),
                        meta: {
                            activeMenu: 'operation'
                        }
                    }
                ]
            },
            {
                path: "assess",
                name: "assess",
                component: ()=>import("@/views/officeAutomation/assess/assess"),
                meta: {
                    activeMenu: 'assess'
                }
            },
            {
                path: "auth",
                name: "auth",
                component: ()=>import("@/views/officeAutomation/auth/auth"),
                meta: {
                    activeMenu: 'auth'
                }
            },
        ]
    }
]